/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package query;
import graph.*;
/**
 *
 * @author Gonzalo
 */
public class Debug {
    String label;

    public Debug(String _label){
        label=_label;
    }

    public void ejecutar(Schema s){
        if(s.edges.containsKey(label)){
            s.edges.get(label).debug();
            s.edges.get(s.inverso(label)).debug();
        }else if(s.attributes.containsKey(label))
            s.attributes.get(label).debug();
    }

    public String print(){
        return "debug "+label;
    }

}
